package daobeauty.interceptor.invoke.factory.impl;

import java.lang.reflect.Method;

import daobeauty.interceptor.DaoMetaData;
import daobeauty.interceptor.invoke.InvokeStrategy;
import daobeauty.interceptor.invoke.factory.InvokeStrategyFactory;
import daobeauty.interceptor.invoke.impl.FindAllInvoke;

public class FindAllInvokeFactory implements InvokeStrategyFactory{

	public InvokeStrategy create(DaoMetaData daoMetaData, Method daoMethod) {
		return new FindAllInvoke(daoMethod, daoMetaData.getSessionFactory(), daoMetaData.getDomainClass());
	}

}
